<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="../script/easyui/themes/default/easyui.css" rel="stylesheet" type="text/css" />
<link href="../style/css/User_index.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.clear {
	clear: both;
}
</style>
<script type="text/javascript" src="../script/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="../script/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../script/easyui/themes/icon.css"></script>
<script type="text/javascript">
$(document).ready(function(){
	loadTree('ccgl');
	$.messager.show({
		title:'提 醒:',
		msg:'目前暂无提醒！',
		timeout:8000,
		showType:'slide'
	});
	//alert(getBodyWidth(0.45));
	//$("#welcome_content").css({"overflow-y":"auto","overflow-x":"hidden"});
});
	function addTab(subtitle,url,icon){
		if(!$('#tabs').tabs('exists',subtitle)){
			$('#tabs').tabs('add',{
				title:subtitle,
				content:createFrame(url),
				closable:true,
				icon:icon
			});
		}else{
			$('#tabs').tabs('select',subtitle);
		}
		tabClose();
	}

	function loadTree(nodeName){
		//alert(nodeName);
		$('#tt2').tree({
			checkbox: false,
			url: "tree_data/tree_data_"+nodeName+".json",
			onClick:function(node){
				$(this).tree('toggle', node.target);
				//alert('you dbclick '+node.text);
				addTab(node.text,"http://www.baidu.com","");
			}
		});
	}

	function createFrame(url)
	{
		var s = '<iframe scrolling="auto" frameborder="0"  src="'+url+'" style="width:100%;height:100%;"></iframe>';
		return s;
	}
	function getBodyWidth(percent){
		var w=document.body.clientWidth*percent;
		return w;
	}
		
	</script>
</head>
<body class="easyui-layout" style="min-width: 1024px">
	<div region="north" border="false" style="height: 80px; background: #B3DFDA;">
		<div class="top">
			<div class="logo">湖北襄阳东国家粮食储备库— —粮库管理信息系统</div>
			<div class="userinfo">
				<div class="welcome">尊敬的:XXX</div>
				<div class="menus">
					<ul>
						<li><a href="#" onclick="loadTree('rlzygl')">人力资源管理</a>
						</li>
						<li><a href="#" onclick="loadTree('ywgl')">业务管理</a>
						</li>
						<li><a href="#" onclick="loadTree('ccgl')">仓储管理</a>
						</li>
						<li><a href="#" onclick="loadTree('xzsw')">行政事务</a>
						</li>
						<li><a href="#" onclick="loadTree('cwgl')">财务管理</a>
						</li>
						<li><a href="#" onclick="loadTree('bgzdh')">办公自动化</a>
						</li>
						<li><a href="#" onclick="loadTree('rlzygl')">系统设置</a>
						</li>
						<li><a href="#" onclick="loadTree('rlzygl')">帮助</a>
						</li>
					</ul>
				</div>
				<div class="logout">
					<a href="../logout.aspx" target="_parent">退出</a>
				</div>
			</div>
		</div>
	</div>
	<div region="west" split="true" title="导 航" style="width: 180px; padding: 10px;">
		<ul id="tt2"></ul>
	</div>
	<!-- <div region="east" split="true" title="East" style="width: 100px; padding: 10px;">east region</div> -->
	<div region="south" border="false" style="height: 50px; background: #A9FACD; padding: 10px;">south region</div>
	<div region="center">
		<div id="tabs" class="easyui-tabs" fit="true" border="false">
			<div title="欢迎使用" >
				<iframe scrolling="auto" frameborder="0" src="Welcome.php" style="width: 100%; height: 100%;"></iframe>
			</div>
		</div>
	</div>
</body>
</html>



































